<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增商品统计信息')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-summary-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">商品id
                ：</label>
            <div class="col-sm-8">
                <input name="productId" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">点击量
                ：</label>
            <div class="col-sm-8">
                <input name="clickCount" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">总销量
                ：</label>
            <div class="col-sm-8">
                <input name="saleCount" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">总销售金额
                ：</label>
            <div class="col-sm-8">
                <input name="saleMoney" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">月销量
                ：</label>
            <div class="col-sm-8">
                <input name="monthSaleCount" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">月销售金额
                ：</label>
            <div class="col-sm-8">
                <input name="monthSaleMoney" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">评价量
                ：</label>
            <div class="col-sm-8">
                <input name="appraiseCount" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">好评量
                ：</label>
            <div class="col-sm-8">
                <input name="praiseCount" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "product/summary"
    $("#form-summary-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-summary-add').serialize());
        }
    }
</script>
</body>
</html>